import java.io.*;
import java.util.Properties;

public class main {
    public static void main(String[] args) throws FileNotFoundException {
        Properties properties = new Properties();
        InputStream inStream = new FileInputStream("F:/Mytest/src/main/resources/Producer.properties");
        try {
            properties.load(inStream);
        } catch (IOException e) {
            System.out.println("配置文件有误！");
            e.printStackTrace();
        }
        System.out.println(properties.getProperty("key.serializer"));

    }
}
